// api/table.ts
import axios from 'axios'

export interface TableItem {
  id: number
  tableNumber: string
  status: 'FREE' | 'OCCUPIED'
}

export function listTables(storeId: number) {
  return axios.get<TableItem[]>('/api/manager/tables', { params: { storeId } })
}